package MybatisTest;

import java.io.Serializable;

public class PartsBean implements Serializable {

	private Integer Id;
	private String Name;
	private CarsBean carsBean;
	
	public PartsBean(String name, CarsBean carsBean) {
		super();
		Name = name;
		this.carsBean = carsBean;
	}
	public Integer getId() {
		return Id;
	}
	public void setId(Integer id) {
		Id = id;
	}
	public String getName() {
		return Name;
	}
	public void setName(String name) {
		Name = name;
	}
	public CarsBean getCarsBean() {
		return carsBean;
	}
	public void setCarsBean(CarsBean carsBean) {
		this.carsBean = carsBean;
	}
	@Override
	public String toString() {
		return "PartsBean [Id=" + Id + ", Name=" + Name + ", carsBean=" + carsBean + "]";
	}

}
